package com.yy;

import com.yy.mapper.TeacherMapper;
import com.yy.pojo.Teacher;
import com.yy.utils.MybatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class testTeacher {
    @Test
    public void t1() {
        SqlSession session = MybatisUtil.getSession();
        List<Teacher> teachers = session.getMapper(TeacherMapper.class).selectAllTeacher(1);
        for (Teacher teacher : teachers) {
            System.out.println(teacher);
        }
    }
}
